package org.dding.msc.service;

import org.dding.msc.service.ServiceController.State;

public class ServiceStateInfo {

	private State state;

	private String message;

	private ServiceName service;

	private boolean isException;

	public ServiceStateInfo(State state, String message, ServiceName service,
			boolean isException) {
		super();
		this.state = state;
		this.message = message;
		this.service = service;
		this.isException = isException;
	}

	public boolean isException() {
		return isException;
	}

	public void setException(boolean isException) {
		this.isException = isException;
	}

	public ServiceName getService() {
		return service;
	}

	public void setService(ServiceName service) {
		this.service = service;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "ServiceStateInfo [state=" + state + ", message=" + message
				+ ", service=" + service + ", isException=" + isException + "]";
	}
}
